package com.starsea.book.ui.newpage.adapter

import android.content.Context
import android.view.ViewGroup
import com.starsea.book.base.adapter.ItemViewHolder
import com.starsea.book.base.adapter.RecyclerAdapter
import com.starsea.book.databinding.ItemSignWeekBinding
import com.starsea.book.ui.widget.recycler.ItemTouchCallback

class SignDetailsWeekAdapter(
    context: Context,
    ) :
    RecyclerAdapter<String, ItemSignWeekBinding>(context),
    ItemTouchCallback.Callback {


    override fun getViewBinding(parent: ViewGroup): ItemSignWeekBinding {
        return ItemSignWeekBinding.inflate(inflater, parent, false)
    }

    override fun registerListener(holder: ItemViewHolder, binding: ItemSignWeekBinding) {

    }

    override fun convert(
        holder: ItemViewHolder,
        binding: ItemSignWeekBinding,
        item: String,
        payloads: MutableList<Any>
    ) {
        binding.run {
            tvTitle.text = item
        }
    }


}